let g:airline_extensions = get(g:, 'airline_extensions', ['default', 'tabline'])
" let g:airline#extensions#tabline#enabled = 1
" let g:airline#extensions#tabline#left_sep = ' '
" let g:airline#extensions#tabline#left_alt_sep = '|'
" let g:airline#extensions#tabline#formatter = 'default'

" let g:airline_statusline_ontop=1

function! plugin#vim_airline#load() abort
    if !exists('g:loaded_airline')
        packadd vim-airline
    endif
    return exists('g:loaded_airline') && g:loaded_airline
endfunction

function! plugin#vim_airline#init() abort
    if plugin#vim_airline#load()
        AirlineRefresh
    endif
endfunction
